from docx import Document
import dir_op

if __name__ == '__main__':
    dir_path = input('输入日报所在文件夹：')
    file_paths = []
    dir_op.getfiles(dir_path,file_paths)
    print(file_paths[0])
    # for f_path in file_paths:
    #     f_doc = Document(f_path)
    f_doc = Document(file_paths[0])
    
    Ttable = f_doc.tables[3]
    for row in Ttable.rows:
        for cell in row.cells:
            print(cell.text,'\t')  
    
